package com.baishancloud.log.murloc.tools


/**
 * 保存国家、省份、运营商字符串和其对应id的关系
 */
object IdMap extends Serializable {

  val defaultId: Int = 0

  val countryMap = Map(
    "unknown" -> 0,
    "中国" -> 1
  )

  val provinceMap = Map(
    "unknown" -> 0,
    "安徽" -> 1,
    "北京" -> 2,
    "重庆" -> 3,
    "cn" -> 4,
    "福建" -> 5,
    "甘肃" -> 6,
    "广东" -> 7,
    "广西" -> 8,
    "贵州" -> 9,
    "海南" -> 10,
    "河北" -> 11,
    "黑龙江" -> 12,
    "河南" -> 13,
    "湖北" -> 14,
    "湖南" -> 15,
    "江苏" -> 16,
    "江西" -> 17,
    "吉林" -> 18,
    "辽宁" -> 19,
    "内蒙古" -> 20,
    "宁夏" -> 21,
    "青海" -> 22,
    "陕西" -> 23,
    "山东" -> 24,
    "上海" -> 25,
    "山西" -> 26,
    "四川" -> 27,
    "天津" -> 28,
    "新疆" -> 29,
    "西藏" -> 30,
    "云南" -> 31,
    "浙江" -> 32
  )

  val providerMap = Map(
    "unknown" -> 0,
    "长宽" -> 1,
    "cnisp" -> 2,
    "科技网" -> 3,
    "电信" -> 4,
    "eh" -> 5,
    "方正宽带" -> 6,
    "广电" -> 7,
    "歌华有线" -> 8,
    "henghui" -> 9,
    "教育网" -> 10,
    "联通" -> 11,
    "qt" -> 12,
    "spider" -> 13,
    "topway" -> 14,
    "铁通" -> 15,
    "移动" -> 16,
    "yxt" -> 17,
    "zhongxin" -> 18
  )
}
